package org.example.StudentManagementSystem.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("students")
@Schema(description = "学生信息")
public class Student {
    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "学生ID", example = "1")
    private Integer id;

    @Schema(description = "学生姓名", example = "张三")
    private String name;

    @Schema(description = "学生年龄", example = "20")
    private int age;

    @Schema(description = "学生性别（0: 女, 1: 男）", example = "1")
    private int gender;

    @Schema(description = "学生邮箱", example = "zhangsan@example.com")
    private String email;

    @Schema(description = "学生电话", example = "13800138000")
    private String phone;

    @Schema(description = "班级ID", example = "1")
    private Integer classId;
}
